package com.youkeyi.ddy.cloud.common.api.basic.pub.server.dto;

import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * PublicServerTreeItemCloudDto
 *
 * @Author liuxiawang
 * @Date 2024/2/20 4:34 PM
 * @Location shenzhen.china
 */
@Data
public class PublicServerTreeItemCloudDto extends ResponseContent {

    public PublicServerTreeItemCloudDto() {
    }

    public PublicServerTreeItemCloudDto(boolean success, String message) {
        super(success, message);
    }

    private String serverPrimaryKey;

    /**
     * 主体key
     */
    private String corpKey;

    /**
     * 编号
     */
    private String serverCode;

    /**
     * 服务名
     */
    private String name;

    /**
     * 服务级别
     */
    private Integer level;

    /**
     * 父级服务Key
     */
    private String parentKey;

    /**
     * 服务层级路径
     */
    private String path;

    /**
     * 服务描述
     */
    private String desc;

    /**
     * 备注
     */
    private String remark;

    /**
     * 子服务节点
     */
    private List<PublicServerTreeItemCloudDto> serverItems = new ArrayList<>();
}
